package org.abacus.platform.workflow;

import java.util.HashSet;
import java.util.Set;

public class StartStation extends AbstractStation {
	private Set<UnterwegsStation> next = new HashSet<UnterwegsStation>();

	public Set<UnterwegsStation> getNext() {
		return next;
	}

	public void setNext(Set<UnterwegsStation> next) {
		this.next = next;
	}

	public WorkStationType getWorkStationType() {
		workStationType = WorkStationType.START;
		return this.workStationType;
	}

	public AbstractStation goNext() {
		for (UnterwegsStation nex : getNext()) {
			if (nex.getAttachedAble().doWork()) {
				return nex;
			}
		}
		return null;
	}

	public AbstractStation goPrevious() {
		return null;
	}

}
